package BC75_数字三角形;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()){
            int num = sc.nextInt();

            for (int i = 0; i < num; i++){
                int print = 1;
                for (int j = 0; j <= i; j++){
                    System.out.printf("%d ", print++);
                }
                System.out.println();
            }
        }

    }
}
